﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ObjectPersistence;

public partial class TestService : System.Web.UI.Page
{
    ModuleAssembler service = new ModuleAssembler();
    protected void Page_Load(object sender, EventArgs e)
    {

        ModuleCriteria c = new ModuleCriteria();
        c.Set_ModuleId(CriteriaBase.AVAILABLE_OPERATORS.LESS_THAN, 10);

        Gridview1.DataSource = service.ReadCollection("ModuleId in (select top 2 ModuleId from Module order by ModuleId desc)");
        Gridview1.DataBind();
    }
}
